package client.intellijboy.demo.vo.create;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Schema(name = "日期时间请求参数")
public class DateTimeReq implements Serializable {

//    @Schema(description = "Date类型", example = "2023-10-03 20:54:08", format = "yyyy-MM-dd HH:mm:ss")
//     @Schema(description = "Date类型", example = "2023-10-03 20:54:08", format = "date-time")
//    @Schema(description = "Date类型", example = "2023-10-20T16:54:39.570Z", format = "date-time")
    private Date date;

    @Schema(description = "LocalDate类型", example = "2023-10-03")
    private LocalDate localDate;

    @Schema(description = "LocalTime类型", example = "20:23:27")
    private LocalTime localTime;

//    @Schema(description = "LocalDateTime类型", example = "2023-10-20T16:54:39.570Z",format = "date-time")
    @Schema(description = "LocalDateTime类型", example = "2023-10-03 20:54:08",format = "date-time")
    private LocalDateTime localDateTime;
}
